<?php
use yii\widgets\Breadcrumbs;
use dmstr\widgets\Alert;

?>
<style>
    .content-wrapper .content {
        padding-top: 0px;
    }
    .search-form td {
        padding: 0 5px;
    }
    .search-form #reset {margin-left: 10px;}
    .content-wrapper, .right-side, .jumbotron {background-color: #fff;}
    .col-lg-3 {
        margin-top: 46px;
    }
    .breadcrumb {
        padding: 8px 15px;
        margin-bottom: 20px;
        list-style: none;
        background-color: #f5f5f5;
        border-radius: 4px;
    }
    .greenBtn {
        background: #53b768;
        color: #fff;
        margin-right: 6px;
        border-radius: 4px !important;
    }
    .redBtn {
        background: #dd5152;
        color: #fff;
        margin-right: 6px;
        border-radius: 4px !important;
    }
    .blueBtn {
        background: #2c7bb2;
        color: #fff;
        margin-right: 6px;
        border-radius: 4px !important;
    }
    .kv-panel-before {
        box-shadow: 0px 1px 4px 0px #ccc;
    }
    .kv-panel-before {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }
    .rc-handle-container {
        position: relative;
    }
    .rc-handle {
        position: absolute;
        width: 7px;
        cursor: col-resize;
        margin-left: -3px;
        z-index: 2;
    }
    .skip-export a {
        margin-right: 8px;
    }
    .table-bordered>thead>tr>th, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td {
        border: 1px solid #ccc;
    }
    .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td {
        border-top: 1px solid #ccc;
    }
    .img {max-width: 100%;}
    .table td span.glyphicon {
        margin: 0 4px;
    }
    .table > tbody > tr > td {
        vertical-align: middle;
    }
</style>
<div class="content-wrapper">
    <div class="">
        <?=
        Breadcrumbs::widget(
            [
                'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
            ]
        ) ?>
    </div>

    <section class="content">
        <?= Alert::widget() ?>
        <?= $content ?>
    </section>
</div>

<footer class="main-footer hidden">
    <div class="pull-right hidden-xs">
        <b>Version</b> 2.0
    </div>
    <strong>Copyright &copy; 2016 <a href="http://www.dutuwang.net">Dutuwang Inc</a>.</strong> All rights reserved.
</footer>
<!-- Add the sidebar's background. This div must be placed
     immediately after the control sidebar -->
<div class='control-sidebar-bg'></div>

<!-- 模态框   信息删除确认 -->
<div class="modal fade" id="delcfmOverhaul">
    <div class="modal-dialog">
        <div class="modal-content message_align">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">提示</h4>
            </div>
            <div class="modal-body">
                <!-- 隐藏需要删除的id -->
                <input type="hidden" id="deletePostId" />
                <input type="hidden" id="deletePostUrl" />
                <p>您确认要删除该条信息吗？</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" id="deleteHaulBtn" onclick="deletePostInfo()">确认</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<div class="modal fade" id="formModal" tabindex="-1" role="dialog" aria-labelledby="formModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">Modal title</h4>
            </div>
            <div class="modal-body modal-body-view"></div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->